import { BaseWindow } from "../../../component/window/BaseWindow";
import { Language } from "../../../../extend/language/Language";
import { ObjCreate } from "../common/ObjCreate";
import { GlobalStyle } from "../../../common/global/GlobalStyle";
type int = number;
//class RunBusinessIntroWindow
    
    export  class RunBusinessIntroWindow extends BaseWindow
    {
        constructor()
        {
            super();
            setSize(230, 250);
            titleHeight = 30;
            title = Language.getString(35320);
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            var loc1=ObjCreate.createBg(17, 40, 196, 198, this);
            var loc2=Language.getString(35321);
            var loc3=this.createTextfield(25, 45, 195, 120, loc2, GlobalStyle.textFormat1);
            var loc4=Language.getString(35322);
            var loc5=this.createTextfield(25, 160, 195, 100, loc4, GlobalStyle.textFormat6);
            return;
        }

        /* internal  */createTextfield(arg1: int, arg2: int, arg3: int, arg4: int, arg5: string, arg6: Object /* flash.text.TextFormat */): Object /* flash.text.TextField */
        {
            var loc1=null;
            (loc1 = new Object /* flash.text.TextField */()).x = arg1;
            loc1.y = arg2;
            loc1.width = arg3;
            loc1.height = arg4;
            loc1.text = arg5;
            loc1.selectable = false;
            loc1.wordWrap = true;
            loc1.multiline = true;
            loc1.setTextFormat(arg6);
            addChild(loc1);
            return loc1;
        }
    }
